package com.usian.apis.wemedia;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.wemedia.pojos.WmUser;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface WmUserControllerApi {

    /**
     * 保存自媒体用户
     * @param wmUser
     * @return
     */

     ResponseResult save(@RequestBody WmUser wmUser);

    /**
     * 按照名称查询用户
     * @param name
     * @return
     */

     WmUser findByName(@PathVariable String name);
    /**
     * 根据id查询自媒体用户
     * @param id
     * @return
     */
    WmUser findWmUserById(Integer id);
}
